<template>
  <ProductForm :productId="productId"></ProductForm>
</template>
<script setup name="editProduct">
import { useRoute, useRouter } from 'vue-router'
import ProductForm from '@/views/sourceManage/productMange/modules/productForm'
const route = useRoute()
let productId = ref(null)
watch(
  () => route.query.productId,
  val => {
    if (route.query.productId) {
      productId.value = route.query.productId
    }
  },
  {
    immediate: true
  }
)
</script>
